﻿using System;
using BepInEx;
using HarmonyLib;
using JetBrains.Annotations;
using UnityEngine;
using System.Collections.Generic;
using static TMPro.SpriteAssetUtilities.TexturePacker_JsonArray;
using BepInEx.Logging;
using System.Collections;
using System.Linq;
using MGSC;
namespace QuasimorphMod
{
    [BepInPlugin("aoe.top.plugins.MyQuasimorphMod", "异常形态", "1.0.0")]
    public class EnterMod : BaseUnityPlugin
    {
        static readonly ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource("DropProcessPatch");
        void Awake()
        {
            Logger.LogInfo("异常形态 BepInEx 插件已加载 —— 版本验证通过");
            new Harmony("demo.harmony.replace").PatchAll();
            Logger.LogInfo("PostProcess 方法已被完全替换");
        }
        //重写背包高和宽的set和get
        [HarmonyPatch(typeof(BackpackRecord), "get_Width")]
        public static class BackpackRecordWidthPatch
        {
            [HarmonyPostfix]
            public static void Postfix(ref int __result)
            {
                __result = 1; // 修改 Width 的值
            }
        }
    }
}

